package com.hbgc.utils;

import com.github.pagehelper.PageInfo;
import com.hbgc.common.PageResult;

public class ConvertUtils {


    public static PageResult  convertData(PageInfo pageInfo)
    {
        PageResult result=new PageResult();
        result.setCode(0);
        result.setMsg("");
        result.setCount(pageInfo.getTotal());
        result.setData(pageInfo.getList());
        return result;
    }

}
